/*
 * Copyright (C) 2018 Baidu, Inc. All Rights Reserved.
 */
package com.pingan.haofang.searchcloud.web.monitor.form;

import com.pingan.haofang.searchcloud.common.constants.Constants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @version 1.0
 * @description
 * @auther baojimin
 * @create 2018/4/25 10:23
 */
@ApiModel(description = "日期范围表单")
public class DateRangeForm {

    @ApiModelProperty(required = true, value = "统计起始时间(yyyyMMdd,包含)")
    @DateTimeFormat(pattern = Constants.DATE_FORMAT_YYYYMMDD)
    private Date fromDate;

    @ApiModelProperty(required = true, value = "统计截止时间(yyyyMMdd,不包含)")
    @DateTimeFormat(pattern = Constants.DATE_FORMAT_YYYYMMDD)
    private Date toDate;

    public Date getFromDate() {
        return fromDate;
    }

    public void setFromDate(Date fromDate) {
        this.fromDate = fromDate;
    }

    public Date getToDate() {
        return toDate;
    }

    public void setToDate(Date toDate) {
        this.toDate = toDate;
    }
}
